const crawlerNews = {
  state: {
    allCrawlerNews: '',
    determineCrawlerNews: '',
    undetermineCrawlerNews: '',
    otherCrawlerNews: '',
    isProcessCrawlerNews: ''
  },

  mutations: {
    SET_ALL_CRAWLER_NEWS: (state, allCrawlerNews) => {
      state.allCrawlerNews = allCrawlerNews
    },
    SET_DETERMINE_CRAWLER_NEWS: (state, determineCrawlerNews) => {
      state.determineCrawlerNews = determineCrawlerNews
    },
    SET_UNDETERMINE_CRAWLER_NEWS: (state, undetermineCrawlerNews) => {
      state.undetermineCrawlerNews = undetermineCrawlerNews
    },
    SET_OTHER_CRAWLER_NEWS: (state, otherCrawlerNews) => {
      state.otherCrawlerNews = otherCrawlerNews
    },
    SET_IS_PROCESS_CRAWLER_NEWS: (state, isProcessCrawlerNews) => {
      state.isProcessCrawlerNews = isProcessCrawlerNews
    }
  },

  actions: {
    setAllCrawlerNews({ commit }, allCrawlerNews) {
      commit('SET_ALL_CRAWLER_NEWS', allCrawlerNews)
    },
    setDetermineCrawlerNews({ commit }, determineCrawlerNews) {
      commit('SET_DETERMINE_CRAWLER_NEWS', determineCrawlerNews)
    },
    setUndetermineCrawlerNews({ commit }, undetermineCrawlerNews) {
      commit('SET_UNDETERMINE_CRAWLER_NEWS', undetermineCrawlerNews)
    },
    setOtherCrawlerNews({ commit }, otherCrawlerNews) {
      commit('SET_OTHER_CRAWLER_NEWS', otherCrawlerNews)
    },
    setIsProcessCrawlerNews({ commit }, isProcessCrawlerNews) {
      commit('SET_IS_PROCESS_CRAWLER_NEWS', isProcessCrawlerNews)
    }
  }
}

export default crawlerNews
